<ion-view title="基本信息">
  <ion-nav-buttons side="right">
    <button class="button no-animation button-icon icon ion-ios-compose-outline"
            ng-click="toggleEnableEdit()">
    </button>
  </ion-nav-buttons>
    <ion-content overflow-scroll="true" padding="true" scroll="true" class="has-header">
      <form name="form" ng-submit="submit()" novalidate>
        <div class="list">
          <label class="item item-input">
            <span class="input-label">用户名</span>
            <span > {{hotel.user.loginName}}</span>
          </label>
          <ion-item class="item-divider">基本信息</ion-item>
          <label class="item item-input" name="orgName" ng-model="hotel.hotelname" >
            <span class="input-label">旅馆名称</span> <span class="padding"></span>
            <span>{{hotel.hotelname}}</span>
          </label>
          <label class="item item-input" name="orgCode">
            <span class="input-label">组织机构代码</span>
            <span>{{hotel.hotelorgno}}</span>
          </label>
          <label class="item item-input  item-icon-right" name="bedNum">
            <span class="input-label">旅馆床位数</span>
            <input type="number" placeholder="必填"
                   ng-readonly="!editEnbable"
                   ng-model="hotel.hotelseatcount"  bsy-form-validate="hotelSeatCountErrorTips"
                   ng-minlength="1"
                   required >
            <i class="icon  ion-edit" ng-show="editEnbable"></i>
          </label>
          <label class="item item-input" name="address">
            <span class="input-label">地址</span>
            <span>{{hotel.hoteladdress}}</span>
          </label>
          <label class="item item-input">
            <span class="input-label">管辖派处所</span>
            <span class="input-label">{{hotel.office.name}}</span>
          </label>

          <div class="item item-input" name="personalPhoto">
            <span class="input-label" style="width: 20%">照片</span>
            <div style="width: 80%">
              <ion-photo-grid-viewer ion-photo-items="items">

              </ion-photo-grid-viewer>

            </div>

          </div>

          <button class="button button-positive button-block " check-form ng-show="editEnbable">修改</button>
        </div>

      </form>
    </ion-content>
</ion-view>
